package com.pzhu.record.controller;

import com.pzhu.record.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author F5-573g
 */
@Controller
@RequestMapping("/base")
public class BaseAction {

    @Autowired
    protected TeacherService teacherService;
    @Autowired
    protected BasicinformationService basicinformationService;
    @Autowired
    protected AchievementService achievementService;
    @Autowired
    protected RewardService rewardService;
    @Autowired
    protected CertificateService certificateService;
    @Autowired
    protected PunishService punishService;
    @Autowired
    protected GraduationService graduationService;

    @RequestMapping("/goURL/{folder}/{file}")
    public String goUrl(@PathVariable String folder, @PathVariable String file) {

        return "forward:/WEB-INF/" + folder + "/" + file + ".jsp";
    }
}
